/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const exchangeRouter: RouteConfig = {
  path: '/exchange',
  component: Layout,
  redirect: '/exchange/mainAccount',
  name: '收汇清分子系统',
  meta: {
    title: '收汇清分子系统',
    icon: 'form',
    hidden: true
  },
  children: [
    {
      path: 'mainAccount',
      // component: ,
      name: '主账号管理',
      meta: { title: '主账号管理' }
    },
    {
      path: 'mainAccountDetail/:id',
      // component: () => import('@/views/exchange/accountManage/mainAccountDetail/index.vue'),
      name: '主账号管理详情',
      meta: { title: '主账号管理详情' }
    },
    {
      path: 'virtualAccount',
      // component: () => import('@/views/exchange/accountManage/virtualAccount/index.vue'),
      name: '虚拟子账号管理',
      meta: { title: '虚拟子账号管理' }
    },
    {
      path: 'virtualAccountDetail/:id',
      // component: () => import('@/views/exchange/accountManage/virtualAccountDetail/index.vue'),
      name: '虚拟子账号管理详情',
      meta: { title: '虚拟子账号管理详情' }
    },
    {
      path: 'unitOperation',
      // component: () => import('@/views/exchange/accountManage/unitOperation/index.vue'),
      name: '经营单位户名管理',
      meta: { title: '经营单位户名管理' }
    },
    {
      path: 'configurationManage',
      // component: () => import('@/views/exchange/accountManage/configurationManage/index.vue'),
      name: '子账号及户名管理',
      meta: { title: '子账号及户名管理' }
    },
    {
      path: 'CollectInformation',
      // component: () => import('@/views/exchange/accountManage/CollectInformation/index.vue'),
      name: '收汇信息管理',
      meta: { title: '收汇信息管理' }
    },
    {
      path: 'overallBank',
      // component: () => import('@/views/commonData/overallBank/index.vue'),
      name: '银行总行管理',
      meta: { title: '银行总行管理' }
    },
    {
      path: 'branchManage',
      // component: () => import('@/views/commonData/branchManage/index.vue'),
      name: '分支行信息管理',
      meta: { title: '分支行信息管理' }
    },
    {
      path: 'setExchange',
      // component: () => import('@/views/commonData/setExchange/index.vue'),
      name: '结汇汇率管理',
      meta: { title: '结汇汇率管理' }
    },
    {
      path: 'chargeAccount',
      // component: () => import('@/views/commonData/chargeAccount/index.vue'),
      name: '记账汇率管理',
      meta: { title: '记账汇率管理' }
    }
  ]
}
export default exchangeRouter
